package com.bestcem.xm.cjm.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.bestcem.xm.component.mybatis.base.BaseEntity2;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "ds_cjm_userclientjourney")
public class CjmUserclientjourney extends BaseEntity2 {
    @TableId(value = "id")
    private String id;

    /**
     * 用户id
     */
    @TableField(value = "user_id")
    @JsonProperty("user_id")
    @JSONField(name = "user_id")
    private String userId;

    /**
     * 客户旅程id
     */
    @TableField(value = "clientjourney_id")
    @JsonProperty("clientjourney_id")
    @JSONField(name = "clientjourney_id")
    private String clientjourneyId;

    /**
     * 所属者id
     */
    @TableField(value = "own_id")
    @JsonProperty("own_id")
    @JSONField(name = "own_id")
    private String ownId;

    /**
     * 文件夹id
     */
    @TableField(value = "package_id")
    @JsonProperty("package_id")
    @JSONField(name = "package_id")
    private String packageId;

    /**
     * 别名
     */
    @TableField(value = "display_name")
    @JsonProperty("display_name")
    @JSONField(name = "display_name")
    private String displayName;

    /**
     * 发布时间
     */
    @TableField(value = "publish_dt")
    @JsonProperty("publish_dt")
    @JSONField(name = "publish_dt")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy/MM/dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime publishDt;

    /**
     * 排序
     */
    @TableField(value = "`order`")
    private Integer order;

    /**
     * 首页
     */
    @TableField(value = "first_page")
    @JsonProperty("first_page")
    @JSONField(name = "first_page")
    private Boolean firstPage;

    /**
     * 是否从sample拷贝
     */
    @TableField(value = "is_copy_demo")
    @JsonProperty("is_copy_demo")
    @JSONField(name = "is_copy_demo")
    private Boolean isCopyDemo;
}